package com.mycharx.springboothibernate.entity;

import lombok.*;
import org.hibernate.annotations.GenericGenerator;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import java.io.Serializable;

/**
 * The type Sso user.
 *
 * @author 张卜亢
 * @date 2020.03.27 22:59:38
 */
@Entity
@Setter
@Getter
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode
public class SsoUser implements Serializable {
    @Id
    @GenericGenerator(name = "generator", strategy = "com.mycharx.springboothibernate.common.key.SnowFlakeKeyGen")
    @GeneratedValue(generator = "generator")
    private Long id;
    private String name;
    private String password;

}
